home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / Plug-in - Attr / NameAttribute.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.5 KB  |  53 lines  |  [TEXT/CWIE]

  1. #ifndef _NAMEATTRIBUTE_
  2. #define _NAMEATTRIBUTE_
  3.  
  4. #include <CodeFragments.h>
  5. #include "QD3D.h"
  6.  
  7. /******************************************************************************
  8.  **        
  9.  **        Macros and constants
  10.  **        
  11.  *****************************************************************************/
  12.  
  13. /*
  14.  * ESSENTIAL NOTE: With the QuickDraw 3D 1.5 release (and later) when you
  15.  * register the element with QuickDraw 3D, for both elements and attributes
  16.  * we change the type you pass in, and return a new dynamically determined
  17.  * type.  You can save the type from Q3XElementClass_Register for later use,
  18.  * get the type from the class using Q3XObjectClass_GetType, or get the type
  19.  * from the same name string used when the element was registered by using
  20.  * Q3ObjectHierarchy_GetTypeFromString.
  21.  */
  22. #define    kElementTypeNameString    "ABC Company:NameAttributeSample"
  23.  
  24.  
  25. /******************************************************************************
  26.  **        
  27.  **        Function prototypes for exported functions
  28.  **        
  29.  *****************************************************************************/
  30.  
  31. TQ3Status    NameAttribute_SetName(
  32.                 TQ3Object         object, 
  33.                 char            *name) ;
  34.  
  35.  
  36. TQ3Status    NameAttribute_GetName(
  37.                 TQ3Object         object, 
  38.                 char            *name) ;
  39.     
  40. TQ3Status    NameAttribute_Unregister(
  41.                 void) ;
  42.  
  43. TQ3Status    NameAttribute_Register( 
  44.                 void ) ;
  45.  
  46. OSErr         NameAttribute_ConnectionInitializationRoutine(
  47.                 InitBlockPtr     initBlkPtr) ;
  48.  
  49. void         NameAttribute_ConnectionTerminationRoutine (
  50.                 void) ;
  51.  
  52.  
  53. #endif